.anomaly-detection-container {
  padding: 16px;
  background-color: #f0f2f5;
  min-height: calc(100vh - 64px);
}

.page-header {
  margin-bottom: 16px;
}

.filter-section {
  padding: 16px;
  background: #fff;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tabs-section {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  background: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tab-item {
  margin-right: 24px;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  color: #666;
}

.tab-item.active {
  color: #1890ff;
  font-weight: 500;
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1890ff;
}

.check-button {
  margin-left: auto;
}

.pagination-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding: 16px;
  background: #fff;
  border-radius: 4px;
}

.highlight-row {
  background-color: #fff1f0;
}

/* 异常详情弹窗样式 */
.anomaly-detail-modal .ant-modal-title {
  font-size: 16px;
  font-weight: 500;
}

.modal-subtitle {
  font-size: 12px;
  color: #999;
  font-weight: normal;
  margin-left: 8px;
}

.detail-tabs {
  display: flex;
  margin-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.detail-tab-item {
  margin-right: 24px;
  padding: 8px 0;
  cursor: pointer;
  position: relative;
  color: #666;
}

.detail-tab-item.active {
  color: #1890ff;
  font-weight: 500;
}

.detail-tab-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1890ff;
}

.detail-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}

.operation-links {
  display: flex;
}

.edit-link {
  color: #1890ff;
  margin-right: 8px;
  padding: 0;
}

.delete-link {
  color: #ff4d4f;
  padding: 0;
}

.anomaly-summary {
  background: #e6f7ff;
  border-radius: 4px;
  padding: 16px 24px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  font-size: 14px;
  align-items: center;
}

.anomaly-summary > div {
  min-width: 180px;
  margin-bottom: 4px;
}

/* 斑马纹效果：偶数行为浅蓝色，奇数行为白色 */
.zebra-row-even {
  background-color: #e6f7ff !important;
}
.zebra-row-odd {
  background-color: #fff !important;
}

/* 数据异常检测弹窗样式 */
.anomaly-detection-modal .ant-modal-title {
  font-size: 16px;
  font-weight: 500;
  text-align: center;
}

.anomaly-detection-modal .ant-form-item-label > label {
  font-weight: 500;
}

.anomaly-detection-modal .ant-form-item-required::before {
  display: inline-block;
  margin-right: 4px;
  color: #ff4d4f;
  font-size: 14px;
  font-family: SimSun, sans-serif;
  line-height: 1;
  content: '*';
}

.detection-type-radio {
  display: flex;
  margin-bottom: 10px;
}

.detection-type-radio .ant-radio-wrapper {
  margin-right: 40px;
}

.task-types-checkbox {
  width: 100%;
}

.task-type-row {
  display: flex;
  margin-bottom: 16px;
}

.task-type-row .ant-checkbox-wrapper {
  margin-right: 40px;
  min-width: 80px;
}

.anomaly-detection-modal .ant-modal-footer {
  text-align: center;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
}

.anomaly-detection-modal .ant-modal-footer .ant-btn {
  width: 120px;
  height: 36px;
  margin: 0 10px;
}

/* 表格内容不换行，超出显示省略号 */
.anomaly-detail-modal .ant-table-cell {
  white-space: nowrap;
}

/* 保证异常详情表格内容自动换行且不省略 */
.anomaly-detail-table-wrap .ant-table-cell {
  white-space: normal !important;
  word-break: break-all;
  overflow-wrap: break-word;
}

/* 缩小表格行距 */
.ant-table-row {
  height: 28px !important;
}
.ant-table-cell {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
} 